package com.power.leopard.remote.common.exception;

public class RpcException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7309903735292979120L;

	protected String errorCode;

	public RpcException() {
		super();
	}

	public RpcException(String msg) {
		super(msg);
	}

	public RpcException(Throwable cause) {
		super(cause);
	}

	public RpcException(String msg, String errorCode, Throwable cause) {
		super(msg, cause);
		this.errorCode = errorCode;
	}

	public RpcException(String msg, Throwable cause) {
		super(msg, cause);
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

}
